package com.example.mobile2021606159yhf0429;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.util.Log;

public class MainActivity extends AppCompatActivity {
    private String TAG="LifeCycle";

    @Override
    protected void onCreate(Bundle savedInstanceState) {//回调方法，当满足某条件时，方法自动启动
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Log.i(TAG,"onCreate:running");
    }
    @Override
    protected void onStart(){
        super.onStart();
        Log.i(TAG,"onStart:Running");
    }
    @Override
    protected void onResume(){
        super.onResume();
        Log.i(TAG,"onResume:Running");
    }
    @Override
    protected void onPause(){
        super.onPause();
    }
    @Override
    protected void onStop(){
        super.onStop();
    }
    @Override
    protected void onRestart(){super.onRestart();}
    @Override
    protected void onDestroy(){super.onDestroy();}
}